Learning to walk with a robot